package cn.neusoft.service.Impl;

import cn.neusoft.domain.MvpSubstation;
import cn.neusoft.mapper.MvpSubstationMapper;
import cn.neusoft.service.MvpSubstationService;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MvpSubstationServiceImpl implements MvpSubstationService {
  @Autowired
  MvpSubstationMapper mvpSubstationMapper;

  //根据分站id和商品id查询任务单中的供货数量
  @Override
  public Long findDeliveryAmount(MvpSubstation mvpSubstation) {
    return mvpSubstationMapper.findDeliveryAmount(mvpSubstation);
  }

  //根据分站id和商品id查询任务单中的退货数量
  @Override
  public Long findReturnAmount(MvpSubstation mvpSubstation) {
    return mvpSubstationMapper.findReturnAmount(mvpSubstation);
  }

  //根据分站id和商品id查询任务单中配送费
  @Override
  public BigDecimal findPostFee(MvpSubstation mvpSubstation){
    return  mvpSubstationMapper.findPostFee(mvpSubstation);
  }
}
